﻿namespace WhatsNewAttributes;

[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Constructor, AllowMultiple = true, Inherited = false)]
public class LastModifiedAttribute : Attribute
{
    private readonly DateTime _dateModified;
    private readonly string _changes;

    public LastModifiedAttribute(string dateModified, string changes)
    {
        _dateModified = DateTime.Parse(dateModified);
        _changes = changes;
    }

    public DateTime DateModified => _dateModified;

    public string Changes => _changes;

    public string? Issues { get; set; }
}

[AttributeUsage(AttributeTargets.Assembly)]
public class SupportsWhatsNewAttribute : Attribute
{
}
